import java.util.Scanner;

public class Easy {

    //HJ46 截取字符串
    //输入一个字符串和一个整数 k ，截取字符串的前k个字符并输出
    public static void main5_1(String[] args) {
        Scanner in = new Scanner(System.in);
        // 注意 hasNext 和 hasNextLine 的区别
        while (in.hasNext()) { // 注意 while 处理多个 case
            String str = in.next();
            int k = in.nextInt();

            System.out.println(str.substring(0, k));
        }
    }
            //打印两种输出
             public static void main4(String[] args) {
                System.out.println("printf(\"Hello world!\\n\");\n"
                + "cout << \"Hello world!\" << endl;");
            }
          static int max3(int a,int b,int c)
          {
             int max1 = a>b?a:b;
             int max2 = max1>c?max1:c;
             return max2;
          }
            public static void main1(String[] args){
            Scanner in = new Scanner(System.in);
            int a = in.nextInt();
            int b = in.nextInt();
            int c = in.nextInt();
            float m = (float) max3(a + b, b, c) / (max3(a, b + c, c) + max3(a, b, b + c));
            System.out.println(m);
        }

        public static void main0(String[] args) {
            //递归求和
            Scanner Scanner = new Scanner(System.in);
            int n = Scanner.nextInt();
            int ret = 1,sum=0;
            for(int i = 1;i<=n;i++){
                ret *= i;
                sum += ret;
            }
            System.out.println(sum);
    }
}
